package com.smilive.start.netty.jdk;

import lombok.extern.slf4j.Slf4j;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

/**
 * @program: netty_start
 * @Date: 2022-01-04 14:11
 * @Author: smilive
 * @Description:
 */
@Slf4j
public class NetClient {

    public static void main(String[] args) {
        try(SocketChannel socketChannel = SocketChannel.open()) {
            socketChannel.connect(new InetSocketAddress(8000));
            log.debug("client connecting....");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
